home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1991 / Jan 91 / MacApp.Tech$ 1⁄18⁄91 / 2672-Row⁄Col Selection in-Jan91 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.5 KB  |  39 lines  |  [TEXT/GEOL]

  1. Item    6402369                         14-Jan-91        20:50PST
  2.  
  3. From:   WICAT                           Wicat Systems, Michael Rossetti,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Item forwarded by       SPA.DTS      to SPA0144 
  8.  
  9. ------------------------------------------------------------------------------
  10.  
  11. Sub:    Row/Col Selection in TGridView
  12.  
  13. Dear MacApp Friends,
  14.  
  15. Well another MacWorld down the drain (ahem, in a manner of speaking).  And so
  16. I've gone back to work on my little game and find that I need a little advice.
  17.  
  18. Essentially, I'm putting together a game board editor by subclassing TGridView.
  19. So far it works just fine.  I can move playing pieces around and scroll the
  20. board.  Selection works find, too.  But, now I wan't to select an entire row or
  21. an entire column by clicking in the row or column header.
  22.  
  23. At first I thought I'd just make the first row and column special of the
  24. TGridView.  But then I ran into all sorts of problems when I wanted to scroll
  25. the game board but keep this special row and column in view.
  26.  
  27. So what I'm thinking of doing now is creating two new subclasses of TGridView
  28. which will take the place of the row and column headers.  I think it will also
  29. make handling the mouse clicking a lot easier.  But I will need to figure out
  30. how to get the scroller to work correctly.
  31.  
  32. What do you all think about this approach to column and row selection?  I there
  33. some much easier way to do it that I'm overlooking?
  34.  
  35. Thanks for you help.
  36.  
  37. Mike (I think there's a lot of life left in MacApp!) Rossetti
  38.  
  39.